package com.github.llyb120.compiler.java;

import lombok.Builder;
import lombok.Data;

/**
 * @Author: Administrator
 * @Date: 7/27/2021 12:00 PM
 */
@Data
@Builder
public class DynamicCode {
    String imports;
    String mainCode;
    String insertBefore;
    String className;

    public String getImports() {
        if (imports == null) {
           return "";
        }
        return imports;
    }

    public String getInsertBefore() {
        if (insertBefore == null) {
            return "";
        }
        return insertBefore;
    }

    public String getClassName() {
        if (className == null) {
            return "";
        }
        return className;
    }

    public String getMainCode() {
        if (mainCode == null) {
            return "";
        }
        return mainCode;
    }
}
